﻿<%@ Page Language="c#" Inherits="WinnerCMS.WebUI.Admin.ControlPanel.Log" CodeBehind="Log.aspx.cs" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>
<html>
<head runat="server">
    <title>系统日志</title>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <meta http-equiv="Pragma" content="No-cach" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    
    
    <style type="text/css">
        #DL_LogChoose lable
        {
        }
    </style>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <BootStrap:Breadcrumb ID="BC_Path" runat="server"></BootStrap:Breadcrumb>
            <table cellspacing="0" cellpadding="4" width="100%" border="0" >
                <tr>
                    <td width="92">日志分类：
                    </td>
                    <td>
                        <asp:DataList ID="DL_LogChoose" runat="server" RepeatColumns="7" 
                            RepeatDirection="Horizontal" Width="100%">
                            <ItemTemplate>
                                <label>
                                    <a href='Log.aspx?Key=<%# Eval("Type") %>'>
                                        <%# Eval("Type") %></a></label></ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <asp:CheckBox ID="cbkSelectID" runat="server" />
                        </ItemTemplate>
                        <HeaderTemplate>
                            <input name="chkHeader" onclick="javascript:SelectAll(this);" type="checkbox" value="chkHeader"> </HeaderTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Type" HeaderText="类型">
                        <ItemStyle Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Event" HeaderText="事件"></asp:BoundField>
                    <asp:BoundField DataField="UserName" HeaderText="管理员">
                        <ItemStyle HorizontalAlign="Center" Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CheckInDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"
                        HeaderText="发生时间" HtmlEncode="False">
                        <ItemStyle HorizontalAlign="Center" Width="120px" />
                    </asp:BoundField>
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
            <table style="width: 100%;">
                <tr>
                    <td  class="btn-group">
                        <asp:Button ID="btnDelete" runat="server" Cssclass="btn btn-default" OnClick="btnDelete_Click"
                            OnClientClick="return CheckSelected(this,'GV_List');" Text=" 删除 " />
                        <asp:Button ID="btnClear" runat="server" Cssclass="btn btn-default" OnClick="btnClear_Click"
                            Text="清空" />
                    </td>
                </tr>
            </table>
       
                    <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" EnableViewState="False"
                        OnPageChanging="PageNavigation1_PageChanging">
                    </WinnerCMS:PageNavigation>
              
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
